﻿var status = 0;
var 活力值 = 1300;
var 积分值 = 1300;
function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode == 1) {
		if (cm.getMapId() == 253000100) {
			cm.warp(253000200);
			cm.dispose();
		} else if (cm.getMapId() == 253000200) {
			cm.warp(253000300);
			cm.dispose();	
		} else if (cm.getMapId() == 253000300) {
			cm.channelMessage(0x18, "[卧虎藏龙]" + " : " + "玩家 " + cm.getPlayer().getName() + " 打败了三大武林高手.获得了武林秘宝！真是羡煞旁人啊！");
			cm.gainPlayerEnergy(积分值);
			cm.gainPlayerPoints(活力值);
			cm.gainItem(2614046, 3);
			cm.gainItem(5062000, 2);
			cm.gainItem(5062002, 2);			
			cm.gainItem(2431347, 2);
			cm.gainItem(2431114, 2);
			cm.gainItem(2436249, 2);
			cm.gainNX(2,1400);
			cm.warp(706041008);
			cm.dispose();
			cm.sendOk("您获得了以下秘宝：\r\n#v2614046#x3 #v5062000#x2 #v5062002#x2 #v2431347#x2 #v2431114#x2 #v2436249#x2 \r\n抵用券x1400 PPMS活跃x1300 PPMS微积分x1300");					
		} else {
			cm.dispose();
		}
	}
	cm.dispose();
}
